<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>emit</title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="father" :style="{fontSize:fontSizess+'em'}">
			<son v-on:large="fontSizess++"></son>
		</div>
		<script>
			Vue.component('son',{
				template:`<div><p>子组件</p><button v-on:click="$emit('large')">我是button</button></div>`
			})
			
			new Vue({
				el:'#father',
				data:{
					mess:'father data',
					fontSizess:1
				}
			})
		</script>
	</body>
</html>
